package temp.lho.lws.mapper;

import org.apache.ibatis.annotations.Param;
import temp.lho.lws.pojo.*;

import java.util.List;

public interface SettlementMapper extends IBaseMapper<SettlementInfo>{

    //获取

    //获取理赔信息
    List<SettlementInfo> getSettlement(ClaimsInfo claims);
    //获取理算信息
    List<AdjustmentInfo> getAdjustment(ClaimsInfo claims);
    //获取保单信息
    List<WarrantyInfo> getWarranty(ClaimsInfo claims);
    //获取投保人信息
    List<PolicyholdersInfo> getPolicyholders(ClaimsInfo claims);
    //获取被保人信息
    List<RecognizeeInfo> getRecognizee(ClaimsInfo claims);
    //获取所有保单号
    List<Integer> getWarrantyId();
    //获取案件信息
    List<ClaimMainInfo> getCase(ClaimsInfo claims);
    //获取列表总数
    Integer getCount(String table);
    //根据保单号获取车架号
    Integer getFrame(Integer warrantyId);
    //根据保单号获取赔案号
    List<String> getClaimsMainId(Integer warrantyId);
    //根据理算ID获取理算详细信息
    List<Adjustmentdetail> getAdjustmentDetail(Integer adjustmentid);
    //查询最后一条理算ID
    Integer getAdjustmentId();

    //修改
    //修改理赔审核
    Integer upSettlement(SettlementInfo settlement);
    //修改理赔结案
    Integer upCase(SettlementInfo settlement);

    //添加
    //添加理赔
    Integer addClaims(SettlementInfo settlement);
    //添加理算
    Integer addAdjustment(AdjustmentInfo adjustment);
    //添加理算详情
    Integer addAdjustmentdetail(Adjustmentdetail adjustmentdetail);

    //删除
    //删除理赔信息
    Integer delSettlement(SettlementInfo settlement);
    //删除理算信息
    Integer delAdjustment(Integer adjustmentid);
    //删除理算详细信息
    Integer delAdjustmentDetail(Integer adjustmentid);
}
